Skip to content

Feature: add new formatters for sponsors#497

Open
andrestejerina97 wants to merge 3 commits intomainfrom
feature/add-formatter-for-sponsors
Open

Feature: add new formatters for sponsors#497
andrestejerina97 wants to merge 3 commits intomainfrom
feature/add-formatter-for-sponsors

Conversation

@andrestejerina97
Copy link
Contributor

@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-for-sponsors branch from 7202e6a to e4a2973 Compare February 9, 2026 20:49
@andrestejerina97 andrestejerina97 marked this pull request as ready for review February 9, 2026 20:49
@andrestejerina97 andrestejerina97 self-assigned this Feb 9, 2026
@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-for-sponsors branch from e4a2973 to c885e10 Compare February 9, 2026 21:01
@martinquiroga-exo
Copy link
Contributor

martinquiroga-exo commented Feb 11, 2026

@andrestejerina97 audit_log.php strategy routes are missing here.

Copy link
Contributor

@martinquiroga-exo martinquiroga-exo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrestejerina97 please see comments.

@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-for-sponsors branch 2 times, most recently from 6f02211 to 893af02 Compare February 14, 2026 12:52
Copy link
Contributor

@martinquiroga-exo martinquiroga-exo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Needs a rebase in order to fix conflicts.

Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just need to be rebased to quash the conflicts.

@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-for-sponsors branch 3 times, most recently from 9853be1 to 0bfb5ba Compare February 18, 2026 13:22
@andrestejerina97 andrestejerina97 force-pushed the feature/add-formatter-for-sponsors branch from 0bfb5ba to a4e0e0a Compare February 18, 2026 14:01
@smarcet smarcet self-requested a review February 19, 2026 18:34
Comment on lines +60 to +61
$this->assertStringContainsString((string)self::SPONSOR_ID, $result);
$this->assertStringContainsString('rate', $result);
Copy link
Collaborator

@smarcet smarcet Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrestejerina97 The string "rate" does not appear anywhere in this output actually the test are not run on the CI
please correct it here
.github/workflows/push.yml
So the failing assertStringContainsString('rate', $result) assertion in SponsorSummitRegistrationDiscountCodeFormatterTest
would never be caught by CI. The formatter tests exist but are not included in the CI pipeline.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI i just include these OTEL test at CI and now are breaking please rebase against main and do check
https://github.com/OpenStackweb/summit-api/actions/runs/22197651105/job/64202064146

switch ($this->event_type) {
case IAuditStrategy::EVENT_ENTITY_CREATION:
return sprintf(
"Sponsor User Info Grant (ID: %s) granting access to user '%s' for Sponsor %s created by user %s",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrestejerina97 There are two spaces between %s and created. This is a typo

],
\models\summit\Sponsor::class => [
'enabled' => true,
'strategy' => \App\Audit\ConcreteFormatters\SponsorAuditLogFormatter::class,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrestejerina97 neither SponsorAuditLogFormatter nor SummitEventTypeAuditLogFormatter has any tests

Copy link
Collaborator

@smarcet smarcet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrestejerina97 please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments